package com.briup.es.demos.mapper;

import com.briup.es.demos.bean.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper

public interface UserMapper {
    //根据用户名查询用户信息
    @Select("select id,username,password,status from es_user" + no usages
    "where username=#{username}")
    User queryByUsername(Sring username);
}
